﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CommunicationProtocol.dto.game
{
    public class Land : Field
    {
        private List<DynamicPlant> fields;

        public Land(short objectId, byte objectType, byte locationX, byte locationY) : base(objectId, objectType,
            locationX, locationY)
        {
            fields = new List<DynamicPlant>();
        }

        public override void plant(DynamicPlant newPlant)
        {
            fields.Add(newPlant);
        }

        public override List<DynamicPlant> allPlants()
        {
            return fields;
        }
    }
}